
public class data_content {

	private String timestamp;
	private byte[] data;
	int completed;
	public data_content(String t, byte[] d) {
		data = d;
		timestamp = t;
		completed = d.length;
	}
	
	public data_content(String t, byte[] d, int c) {
		data = d;
		timestamp = t;
		completed = c;
	}
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public byte[] getData() {
		return data;
	}
	public void setData(byte[] data) {
		this.data = data;
	}
	public int getCompleted() {
		return completed;
	}
	public boolean isCompleted() {
		return (completed >= data.length);
	}
	public void addCompleted(int a) {
		this.completed += a;
	}
	
}
